<template>
  <el-select placeholder="栏目">
    <el-option value="" v-if="empty"></el-option>
    <el-option
      v-for="item in options"
      :key="item.t_cat_pk"
      :label="item.cat_name"
      :value="item.t_cat_pk"
    />
  </el-select>
</template>

<script setup lang="ts">
import { ref, computed, defineProps } from "vue";

import { useStore } from "vuex";

let store = useStore();

let options = computed(() => store.state.catList);

let emit = defineEmits();

let props = defineProps({
  empty: {
    type: Number,
    default: () => true,
  },
});
</script>
<style scoped>
</style>